#ifndef __CONFIG_H__
#define __CONFIG_H__

#include <stdint.h>

typedef int16_t dtype;

#define Q4_12_MULL(A, B) ((dtype)(((A) * (B)) >> 12))
#define Q4_12_MAX(A, B) ((A) > (B) ? (A) : (B))
#define Q4_12_RELU(A) (((A)>>16) ? 0 : (A))

#endif
